import axios from './axios'

//获取产品列表的接口
export function chanpinlb(data) {
    return axios({
        method: 'get',
        url: '/pro/list',
        params: data

    })
}
//更新产品的状态
export function tuijian(data) {
    return axios({
        method: 'post',
        url: '/pro/updateFlag',
        data

    })
}
//商品的分类
export function sousuo(data) {
    return axios({
        method: 'get',
        url: '/pro/getCategory',
        params: data

    })
}
//筛选商品
export function searchpro(data) {
    return axios({
        method: 'post',
        url: '/pro/searchPro',
        data

    })
}